﻿public class NetEvent_Dialogue : NetEvent
{
    public static NetEvent_Dialogue NewEvent()
    {
        return new NetEvent_Dialogue();
    }

    protected override ISerialize NewData() => new DialogueData();


    protected override void Excuate(ISerialize data)
    {
        DialogueData updateData = data as DialogueData;

        GameDebug.Log($"会话：{updateData?.toUserId} ");// delay:{NumsShowController.delayUpdateNumShow}

        MGame.instance.MUser.AddDialogue(updateData.fromUserId, updateData.toUserId, 
            updateData.dialogue.message, updateData.dialogue.time);

    }

}
